<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>SystemSharp: SystemSharp.Assembler.Rewriters.XIL3Rewriter Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">SystemSharp
   &#160;<span id="projectnumber">0.3</span>
   </div>
   <div id="projectbrief">A system-level modeling framework for designing real-time embedded systems</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_system_sharp_1_1_assembler_1_1_rewriters_1_1_x_i_l3_rewriter.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Properties</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Events</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="class_system_sharp_1_1_assembler_1_1_rewriters_1_1_x_i_l3_rewriter-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">SystemSharp.Assembler.Rewriters.XIL3Rewriter Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>This class provides a default implementation of a XIL-3 code transformation. It alleviates the user from many complicated bookkeeping tasks, such as remapping operand slots and retargeting branch labels.  
 <a href="class_system_sharp_1_1_assembler_1_1_rewriters_1_1_x_i_l3_rewriter.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for SystemSharp.Assembler.Rewriters.XIL3Rewriter:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_system_sharp_1_1_assembler_1_1_rewriters_1_1_x_i_l3_rewriter.png" usemap="#SystemSharp.Assembler.Rewriters.XIL3Rewriter_map" alt=""/>
  <map id="SystemSharp.Assembler.Rewriters.XIL3Rewriter_map" name="SystemSharp.Assembler.Rewriters.XIL3Rewriter_map">
<area href="interface_system_sharp_1_1_analysis_1_1_m2_m_1_1_i_x_i_l3_rewriter.html" title="An interface for classes which rewrite lists of XIL-3 instructions. " alt="SystemSharp.Analysis.M2M.IXIL3Rewriter" shape="rect" coords="0,0,397,24"/>
<area href="class_system_sharp_1_1_assembler_1_1_rewriters_1_1_common_sub_expression_eliminator.html" title="This XIL-3 code transformation identifies and eliminates common subexpressions. " alt="SystemSharp.Assembler.Rewriters.CommonSubExpressionEliminator" shape="rect" coords="0,112,397,136"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a53df7aa821d18ec1eccae052bd95d289"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_assembler_1_1_rewriters_1_1_x_i_l3_rewriter.html#a53df7aa821d18ec1eccae052bd95d289">XIL3Rewriter</a> ()</td></tr>
<tr class="memdesc:a53df7aa821d18ec1eccae052bd95d289"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a new instance  <a href="#a53df7aa821d18ec1eccae052bd95d289">More...</a><br/></td></tr>
<tr class="separator:a53df7aa821d18ec1eccae052bd95d289"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aefad8d568f683f51e1bdb2001cacc762"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_system_sharp_1_1_assembler_1_1_x_i_l3_function.html">XIL3Function</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_assembler_1_1_rewriters_1_1_x_i_l3_rewriter.html#aefad8d568f683f51e1bdb2001cacc762">Rewrite</a> (<a class="el" href="class_system_sharp_1_1_assembler_1_1_x_i_l3_function.html">XIL3Function</a> func)</td></tr>
<tr class="memdesc:aefad8d568f683f51e1bdb2001cacc762"><td class="mdescLeft">&#160;</td><td class="mdescRight">Rewrites a list of XIL-3 instructions.  <a href="#aefad8d568f683f51e1bdb2001cacc762">More...</a><br/></td></tr>
<tr class="separator:aefad8d568f683f51e1bdb2001cacc762"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a32bdf66e795d5a2f27b46413039f5ffd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_assembler_1_1_rewriters_1_1_x_i_l3_rewriter.html#a32bdf66e795d5a2f27b46413039f5ffd">Emit</a> (<a class="el" href="class_system_sharp_1_1_assembler_1_1_x_i_l3_instr.html">XIL3Instr</a> i)</td></tr>
<tr class="memdesc:a32bdf66e795d5a2f27b46413039f5ffd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Emits an instruction and assigns an index to it  <a href="#a32bdf66e795d5a2f27b46413039f5ffd">More...</a><br/></td></tr>
<tr class="separator:a32bdf66e795d5a2f27b46413039f5ffd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f8cfd7961e92cd5d16ad1ad796872b6"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_assembler_1_1_rewriters_1_1_x_i_l3_rewriter.html#a4f8cfd7961e92cd5d16ad1ad796872b6">AllocSlot</a> (<a class="el" href="class_system_sharp_1_1_meta_1_1_type_descriptor.html">TypeDescriptor</a> type)</td></tr>
<tr class="memdesc:a4f8cfd7961e92cd5d16ad1ad796872b6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocates a new instruction output slot  <a href="#a4f8cfd7961e92cd5d16ad1ad796872b6">More...</a><br/></td></tr>
<tr class="separator:a4f8cfd7961e92cd5d16ad1ad796872b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a507bb53432e71861290505d162286af1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_assembler_1_1_rewriters_1_1_x_i_l3_rewriter.html#a507bb53432e71861290505d162286af1">RemapSlot</a> (int oldSlot, int newSlot)</td></tr>
<tr class="memdesc:a507bb53432e71861290505d162286af1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Announces that a slot of the input instruction list and a slot of the output instruction list belong together.  <a href="#a507bb53432e71861290505d162286af1">More...</a><br/></td></tr>
<tr class="separator:a507bb53432e71861290505d162286af1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac9c9c36a41aa3e81a20635f8c42733d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_assembler_1_1_rewriters_1_1_x_i_l3_rewriter.html#aac9c9c36a41aa3e81a20635f8c42733d">GetMappedSlot</a> (int oldSlot)</td></tr>
<tr class="memdesc:aac9c9c36a41aa3e81a20635f8c42733d"><td class="mdescLeft">&#160;</td><td class="mdescRight">For a given slot of the input instruction list, returns the corresponding slot of the output instruction list.  <a href="#aac9c9c36a41aa3e81a20635f8c42733d">More...</a><br/></td></tr>
<tr class="separator:aac9c9c36a41aa3e81a20635f8c42733d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae6f4b3510f9c33ac64c15f379cfe87d4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_system_sharp_1_1_assembler_1_1_branch_label.html">BranchLabel</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_assembler_1_1_rewriters_1_1_x_i_l3_rewriter.html#ae6f4b3510f9c33ac64c15f379cfe87d4">Retarget</a> (<a class="el" href="class_system_sharp_1_1_assembler_1_1_branch_label.html">BranchLabel</a> label)</td></tr>
<tr class="memdesc:ae6f4b3510f9c33ac64c15f379cfe87d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retargets a branch label used in the input instruction list to the new location inside the output instruction list.  <a href="#ae6f4b3510f9c33ac64c15f379cfe87d4">More...</a><br/></td></tr>
<tr class="separator:ae6f4b3510f9c33ac64c15f379cfe87d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd926738c15b79e5647372a4b268073e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_assembler_1_1_rewriters_1_1_x_i_l3_rewriter.html#afd926738c15b79e5647372a4b268073e">SetHandler</a> (string icode, Action&lt; <a class="el" href="class_system_sharp_1_1_assembler_1_1_x_i_l3_instr.html">XIL3Instr</a> &gt; handler)</td></tr>
<tr class="memdesc:afd926738c15b79e5647372a4b268073e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Registers a handler function for a specific XIL opcode  <a href="#afd926738c15b79e5647372a4b268073e">More...</a><br/></td></tr>
<tr class="separator:afd926738c15b79e5647372a4b268073e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c1190fbaebc1538f546e4f7be849a9e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_system_sharp_1_1_assembler_1_1_instruction_dependency.html">InstructionDependency</a>[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_assembler_1_1_rewriters_1_1_x_i_l3_rewriter.html#a1c1190fbaebc1538f546e4f7be849a9e">RemapPreds</a> (<a class="el" href="class_system_sharp_1_1_assembler_1_1_instruction_dependency.html">InstructionDependency</a>[] preds)</td></tr>
<tr class="memdesc:a1c1190fbaebc1538f546e4f7be849a9e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remaps the data dependencies from input instructions to output instructions.  <a href="#a1c1190fbaebc1538f546e4f7be849a9e">More...</a><br/></td></tr>
<tr class="separator:a1c1190fbaebc1538f546e4f7be849a9e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7928a314a500783b8e34bfb0ed9a2c1"><td class="memItemLeft" align="right" valign="top">int[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_assembler_1_1_rewriters_1_1_x_i_l3_rewriter.html#ad7928a314a500783b8e34bfb0ed9a2c1">RemapResultSlots</a> (int[] slots)</td></tr>
<tr class="memdesc:ad7928a314a500783b8e34bfb0ed9a2c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Given the result slots of an input instruction, allocates new slots on the output side and remembers the mapping between input-side and output-side slots.  <a href="#ad7928a314a500783b8e34bfb0ed9a2c1">More...</a><br/></td></tr>
<tr class="separator:ad7928a314a500783b8e34bfb0ed9a2c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c30d4bfe7fb360c6379cf46731d4be3"><td class="memItemLeft" align="right" valign="top">int[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_assembler_1_1_rewriters_1_1_x_i_l3_rewriter.html#a0c30d4bfe7fb360c6379cf46731d4be3">RemapOperandSlots</a> (int[] slots)</td></tr>
<tr class="memdesc:a0c30d4bfe7fb360c6379cf46731d4be3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Maps the operand slots of an input instruction to the corresponding operand slots for the output side.  <a href="#a0c30d4bfe7fb360c6379cf46731d4be3">More...</a><br/></td></tr>
<tr class="separator:a0c30d4bfe7fb360c6379cf46731d4be3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0b321d72b44d9f8188f101649b661f8"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_assembler_1_1_rewriters_1_1_x_i_l3_rewriter.html#ac0b321d72b44d9f8188f101649b661f8">ProcessDefault</a> (<a class="el" href="class_system_sharp_1_1_assembler_1_1_x_i_l3_instr.html">XIL3Instr</a> i)</td></tr>
<tr class="memdesc:ac0b321d72b44d9f8188f101649b661f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">The default handler is applied to any non-branching instruction when there is no more specific handler registered.  <a href="#ac0b321d72b44d9f8188f101649b661f8">More...</a><br/></td></tr>
<tr class="separator:ac0b321d72b44d9f8188f101649b661f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac780379bdc2856ad3d5a07e1157b71b5"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_assembler_1_1_rewriters_1_1_x_i_l3_rewriter.html#ac780379bdc2856ad3d5a07e1157b71b5">ProcessBranch</a> (<a class="el" href="class_system_sharp_1_1_assembler_1_1_x_i_l3_instr.html">XIL3Instr</a> i)</td></tr>
<tr class="memdesc:ac780379bdc2856ad3d5a07e1157b71b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">The default branch handler is applied to any branching instruction when there is no more specific handler registered.  <a href="#ac780379bdc2856ad3d5a07e1157b71b5">More...</a><br/></td></tr>
<tr class="separator:ac780379bdc2856ad3d5a07e1157b71b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb3a14c64ef3236e450b01e51925591a"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_assembler_1_1_rewriters_1_1_x_i_l3_rewriter.html#aeb3a14c64ef3236e450b01e51925591a">ProcessInstruction</a> (<a class="el" href="class_system_sharp_1_1_assembler_1_1_x_i_l3_instr.html">XIL3Instr</a> i)</td></tr>
<tr class="memdesc:aeb3a14c64ef3236e450b01e51925591a"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method is called for any instruction. Its default behavior is to lookup handler inside the handler dictionary and redirect the processing to that handler.  <a href="#aeb3a14c64ef3236e450b01e51925591a">More...</a><br/></td></tr>
<tr class="separator:aeb3a14c64ef3236e450b01e51925591a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab9c8a46a8607541bf15a0bd139bbe2b"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_assembler_1_1_rewriters_1_1_x_i_l3_rewriter.html#aab9c8a46a8607541bf15a0bd139bbe2b">PostProcess</a> ()</td></tr>
<tr class="memdesc:aab9c8a46a8607541bf15a0bd139bbe2b"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method is called after processing all inputs instructions. Its default behavior is to adjust all output branch labels with their actual targets.  <a href="#aab9c8a46a8607541bf15a0bd139bbe2b">More...</a><br/></td></tr>
<tr class="separator:aab9c8a46a8607541bf15a0bd139bbe2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46b0592b0c69445a75ed2f71951f8ffe"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_assembler_1_1_rewriters_1_1_x_i_l3_rewriter.html#a46b0592b0c69445a75ed2f71951f8ffe">Rewrite</a> ()</td></tr>
<tr class="memdesc:a46b0592b0c69445a75ed2f71951f8ffe"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method implements the complete transformation.  <a href="#a46b0592b0c69445a75ed2f71951f8ffe">More...</a><br/></td></tr>
<tr class="separator:a46b0592b0c69445a75ed2f71951f8ffe"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:ae889cf56a5b01089b34b7e59ab344216"><td class="memItemLeft" align="right" valign="top">IList&lt; <a class="el" href="class_system_sharp_1_1_assembler_1_1_x_i_l3_instr.html">XIL3Instr</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_assembler_1_1_rewriters_1_1_x_i_l3_rewriter.html#ae889cf56a5b01089b34b7e59ab344216">InInstructions</a><code> [get, set]</code></td></tr>
<tr class="memdesc:ae889cf56a5b01089b34b7e59ab344216"><td class="mdescLeft">&#160;</td><td class="mdescRight">Input instruction list  <a href="#ae889cf56a5b01089b34b7e59ab344216">More...</a><br/></td></tr>
<tr class="separator:ae889cf56a5b01089b34b7e59ab344216"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af72755b88f5afff109d6ceabed144f37"><td class="memItemLeft" align="right" valign="top">List&lt; <a class="el" href="class_system_sharp_1_1_assembler_1_1_x_i_l3_instr.html">XIL3Instr</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_assembler_1_1_rewriters_1_1_x_i_l3_rewriter.html#af72755b88f5afff109d6ceabed144f37">OutInstructions</a><code> [get, set]</code></td></tr>
<tr class="memdesc:af72755b88f5afff109d6ceabed144f37"><td class="mdescLeft">&#160;</td><td class="mdescRight">Output instruction list  <a href="#af72755b88f5afff109d6ceabed144f37">More...</a><br/></td></tr>
<tr class="separator:af72755b88f5afff109d6ceabed144f37"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e68df8caa7be1c2389320292bfeb977"><td class="memItemLeft" align="right" valign="top">IList&lt; <a class="el" href="class_system_sharp_1_1_meta_1_1_type_descriptor.html">TypeDescriptor</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_assembler_1_1_rewriters_1_1_x_i_l3_rewriter.html#a7e68df8caa7be1c2389320292bfeb977">InSlotTypes</a><code> [get]</code></td></tr>
<tr class="memdesc:a7e68df8caa7be1c2389320292bfeb977"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns all slot datatypes associated with the input instructions  <a href="#a7e68df8caa7be1c2389320292bfeb977">More...</a><br/></td></tr>
<tr class="separator:a7e68df8caa7be1c2389320292bfeb977"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a348000c837789188014ef477a7a4f5da"><td class="memItemLeft" align="right" valign="top">IList&lt; <a class="el" href="class_system_sharp_1_1_meta_1_1_type_descriptor.html">TypeDescriptor</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_assembler_1_1_rewriters_1_1_x_i_l3_rewriter.html#a348000c837789188014ef477a7a4f5da">OutSlotTypes</a><code> [get]</code></td></tr>
<tr class="memdesc:a348000c837789188014ef477a7a4f5da"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns all slot datatypes associated with the output instructions  <a href="#a348000c837789188014ef477a7a4f5da">More...</a><br/></td></tr>
<tr class="separator:a348000c837789188014ef477a7a4f5da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5d2917b795b2e832b648e9ff6d21cda"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_assembler_1_1_rewriters_1_1_x_i_l3_rewriter.html#af5d2917b795b2e832b648e9ff6d21cda">NextOutputInstructionIndex</a><code> [get]</code></td></tr>
<tr class="memdesc:af5d2917b795b2e832b648e9ff6d21cda"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the index which will be assigned to the next emitted instruction  <a href="#af5d2917b795b2e832b648e9ff6d21cda">More...</a><br/></td></tr>
<tr class="separator:af5d2917b795b2e832b648e9ff6d21cda"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4cca1ac17b00abc0dafd553c2058ce58"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_assembler_1_1_rewriters_1_1_x_i_l3_rewriter.html#a4cca1ac17b00abc0dafd553c2058ce58">LastOutputInstructionIndex</a><code> [get]</code></td></tr>
<tr class="memdesc:a4cca1ac17b00abc0dafd553c2058ce58"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the index of the last emitted instruction  <a href="#a4cca1ac17b00abc0dafd553c2058ce58">More...</a><br/></td></tr>
<tr class="separator:a4cca1ac17b00abc0dafd553c2058ce58"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a44f400c3f5753ae30e1ccd8d9ab2cff3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_system_sharp_1_1_assembler_1_1_x_i_l3_instr.html">XIL3Instr</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_system_sharp_1_1_assembler_1_1_rewriters_1_1_x_i_l3_rewriter.html#a44f400c3f5753ae30e1ccd8d9ab2cff3">CurInstr</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a44f400c3f5753ae30e1ccd8d9ab2cff3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns current input instruction  <a href="#a44f400c3f5753ae30e1ccd8d9ab2cff3">More...</a><br/></td></tr>
<tr class="separator:a44f400c3f5753ae30e1ccd8d9ab2cff3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This class provides a default implementation of a XIL-3 code transformation. It alleviates the user from many complicated bookkeeping tasks, such as remapping operand slots and retargeting branch labels. </p>

<p>Definition at line <a class="el" href="_x_i_l3_rewriter_8cs_source.html#l00035">35</a> of file <a class="el" href="_x_i_l3_rewriter_8cs_source.html">XIL3Rewriter.cs</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a53df7aa821d18ec1eccae052bd95d289"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SystemSharp.Assembler.Rewriters.XIL3Rewriter.XIL3Rewriter </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructs a new instance </p>

<p>Definition at line <a class="el" href="_x_i_l3_rewriter_8cs_source.html#l00058">58</a> of file <a class="el" href="_x_i_l3_rewriter_8cs_source.html">XIL3Rewriter.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a4f8cfd7961e92cd5d16ad1ad796872b6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int SystemSharp.Assembler.Rewriters.XIL3Rewriter.AllocSlot </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_system_sharp_1_1_meta_1_1_type_descriptor.html">TypeDescriptor</a>&#160;</td>
          <td class="paramname"><em>type</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Allocates a new instruction output slot </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>datatype of slot</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>index of newly allocated output slot</dd></dl>

<p>Definition at line <a class="el" href="_x_i_l3_rewriter_8cs_source.html#l00122">122</a> of file <a class="el" href="_x_i_l3_rewriter_8cs_source.html">XIL3Rewriter.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a32bdf66e795d5a2f27b46413039f5ffd"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SystemSharp.Assembler.Rewriters.XIL3Rewriter.Emit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_system_sharp_1_1_assembler_1_1_x_i_l3_instr.html">XIL3Instr</a>&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Emits an instruction and assigns an index to it </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">i</td><td>instruction to emit</td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_x_i_l3_rewriter_8cs_source.html#l00110">110</a> of file <a class="el" href="_x_i_l3_rewriter_8cs_source.html">XIL3Rewriter.cs</a>.</p>

</div>
</div>
<a class="anchor" id="aac9c9c36a41aa3e81a20635f8c42733d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int SystemSharp.Assembler.Rewriters.XIL3Rewriter.GetMappedSlot </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>oldSlot</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>For a given slot of the input instruction list, returns the corresponding slot of the output instruction list. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">oldSlot</td><td>slot of the input instruction list</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>corresponding slot of the output instruction list</dd></dl>

<p>Definition at line <a class="el" href="_x_i_l3_rewriter_8cs_source.html#l00143">143</a> of file <a class="el" href="_x_i_l3_rewriter_8cs_source.html">XIL3Rewriter.cs</a>.</p>

</div>
</div>
<a class="anchor" id="aab9c8a46a8607541bf15a0bd139bbe2b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void SystemSharp.Assembler.Rewriters.XIL3Rewriter.PostProcess </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>This method is called after processing all inputs instructions. Its default behavior is to adjust all output branch labels with their actual targets. </p>

<p>Definition at line <a class="el" href="_x_i_l3_rewriter_8cs_source.html#l00277">277</a> of file <a class="el" href="_x_i_l3_rewriter_8cs_source.html">XIL3Rewriter.cs</a>.</p>

</div>
</div>
<a class="anchor" id="ac780379bdc2856ad3d5a07e1157b71b5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void SystemSharp.Assembler.Rewriters.XIL3Rewriter.ProcessBranch </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_system_sharp_1_1_assembler_1_1_x_i_l3_instr.html">XIL3Instr</a>&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The default branch handler is applied to any branching instruction when there is no more specific handler registered. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">i</td><td>instruction to process</td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_x_i_l3_rewriter_8cs_source.html#l00240">240</a> of file <a class="el" href="_x_i_l3_rewriter_8cs_source.html">XIL3Rewriter.cs</a>.</p>

</div>
</div>
<a class="anchor" id="ac0b321d72b44d9f8188f101649b661f8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void SystemSharp.Assembler.Rewriters.XIL3Rewriter.ProcessDefault </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_system_sharp_1_1_assembler_1_1_x_i_l3_instr.html">XIL3Instr</a>&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The default handler is applied to any non-branching instruction when there is no more specific handler registered. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">i</td><td>instruction to process</td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented in <a class="el" href="class_system_sharp_1_1_assembler_1_1_rewriters_1_1_common_sub_expression_eliminator.html#ab5e97e5c93230eb0f01987da0942447d">SystemSharp.Assembler.Rewriters.CommonSubExpressionEliminator</a>.</p>

<p>Definition at line <a class="el" href="_x_i_l3_rewriter_8cs_source.html#l00228">228</a> of file <a class="el" href="_x_i_l3_rewriter_8cs_source.html">XIL3Rewriter.cs</a>.</p>

</div>
</div>
<a class="anchor" id="aeb3a14c64ef3236e450b01e51925591a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void SystemSharp.Assembler.Rewriters.XIL3Rewriter.ProcessInstruction </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_system_sharp_1_1_assembler_1_1_x_i_l3_instr.html">XIL3Instr</a>&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>This method is called for any instruction. Its default behavior is to lookup handler inside the handler dictionary and redirect the processing to that handler. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">i</td><td>instruction to process</td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_x_i_l3_rewriter_8cs_source.html#l00256">256</a> of file <a class="el" href="_x_i_l3_rewriter_8cs_source.html">XIL3Rewriter.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a0c30d4bfe7fb360c6379cf46731d4be3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int [] SystemSharp.Assembler.Rewriters.XIL3Rewriter.RemapOperandSlots </td>
          <td>(</td>
          <td class="paramtype">int[]&#160;</td>
          <td class="paramname"><em>slots</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Maps the operand slots of an input instruction to the corresponding operand slots for the output side. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">slots</td><td>operand slots of input instruction</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>corresponding operand slots at output side</dd></dl>

<p>Definition at line <a class="el" href="_x_i_l3_rewriter_8cs_source.html#l00214">214</a> of file <a class="el" href="_x_i_l3_rewriter_8cs_source.html">XIL3Rewriter.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a1c1190fbaebc1538f546e4f7be849a9e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_system_sharp_1_1_assembler_1_1_instruction_dependency.html">InstructionDependency</a> [] SystemSharp.Assembler.Rewriters.XIL3Rewriter.RemapPreds </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_system_sharp_1_1_assembler_1_1_instruction_dependency.html">InstructionDependency</a>[]&#160;</td>
          <td class="paramname"><em>preds</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Remaps the data dependencies from input instructions to output instructions. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">preds</td><td>dependencies of input instruction</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>corresponding dependencies for output instruction</dd></dl>

<p>Definition at line <a class="el" href="_x_i_l3_rewriter_8cs_source.html#l00175">175</a> of file <a class="el" href="_x_i_l3_rewriter_8cs_source.html">XIL3Rewriter.cs</a>.</p>

</div>
</div>
<a class="anchor" id="ad7928a314a500783b8e34bfb0ed9a2c1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int [] SystemSharp.Assembler.Rewriters.XIL3Rewriter.RemapResultSlots </td>
          <td>(</td>
          <td class="paramtype">int[]&#160;</td>
          <td class="paramname"><em>slots</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Given the result slots of an input instruction, allocates new slots on the output side and remembers the mapping between input-side and output-side slots. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">slots</td><td>result slots of input instruction</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>newly allocated result slots for output instruction</dd></dl>

<p>Definition at line <a class="el" href="_x_i_l3_rewriter_8cs_source.html#l00197">197</a> of file <a class="el" href="_x_i_l3_rewriter_8cs_source.html">XIL3Rewriter.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a507bb53432e71861290505d162286af1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SystemSharp.Assembler.Rewriters.XIL3Rewriter.RemapSlot </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>oldSlot</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>newSlot</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Announces that a slot of the input instruction list and a slot of the output instruction list belong together. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">oldSlot</td><td>slot of the input instruction list</td></tr>
    <tr><td class="paramname">newSlot</td><td>slot of the output instruction list</td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_x_i_l3_rewriter_8cs_source.html#l00133">133</a> of file <a class="el" href="_x_i_l3_rewriter_8cs_source.html">XIL3Rewriter.cs</a>.</p>

</div>
</div>
<a class="anchor" id="ae6f4b3510f9c33ac64c15f379cfe87d4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_system_sharp_1_1_assembler_1_1_branch_label.html">BranchLabel</a> SystemSharp.Assembler.Rewriters.XIL3Rewriter.Retarget </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_system_sharp_1_1_assembler_1_1_branch_label.html">BranchLabel</a>&#160;</td>
          <td class="paramname"><em>label</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Retargets a branch label used in the input instruction list to the new location inside the output instruction list. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">label</td><td>branch label of input instruction list</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>corresponding branch label of output instruction list</dd></dl>

<p>Definition at line <a class="el" href="_x_i_l3_rewriter_8cs_source.html#l00153">153</a> of file <a class="el" href="_x_i_l3_rewriter_8cs_source.html">XIL3Rewriter.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a46b0592b0c69445a75ed2f71951f8ffe"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void SystemSharp.Assembler.Rewriters.XIL3Rewriter.Rewrite </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>This method implements the complete transformation. </p>

<p>Definition at line <a class="el" href="_x_i_l3_rewriter_8cs_source.html#l00288">288</a> of file <a class="el" href="_x_i_l3_rewriter_8cs_source.html">XIL3Rewriter.cs</a>.</p>

</div>
</div>
<a class="anchor" id="aefad8d568f683f51e1bdb2001cacc762"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="class_system_sharp_1_1_assembler_1_1_x_i_l3_function.html">XIL3Function</a> SystemSharp.Assembler.Rewriters.XIL3Rewriter.Rewrite </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_system_sharp_1_1_assembler_1_1_x_i_l3_function.html">XIL3Function</a>&#160;</td>
          <td class="paramname"><em>func</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Rewrites a list of XIL-3 instructions. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">instrs</td><td>List of input instructions</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>List of output instructions</dd></dl>

<p>Implements <a class="el" href="interface_system_sharp_1_1_analysis_1_1_m2_m_1_1_i_x_i_l3_rewriter.html#a8ee4ad3529628998e91377f59670036e">SystemSharp.Analysis.M2M.IXIL3Rewriter</a>.</p>

<p>Reimplemented in <a class="el" href="class_system_sharp_1_1_assembler_1_1_rewriters_1_1_common_sub_expression_eliminator.html#adf6afcc89cc82fb81af63015cf9249d8">SystemSharp.Assembler.Rewriters.CommonSubExpressionEliminator</a>.</p>

<p>Definition at line <a class="el" href="_x_i_l3_rewriter_8cs_source.html#l00301">301</a> of file <a class="el" href="_x_i_l3_rewriter_8cs_source.html">XIL3Rewriter.cs</a>.</p>

</div>
</div>
<a class="anchor" id="afd926738c15b79e5647372a4b268073e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SystemSharp.Assembler.Rewriters.XIL3Rewriter.SetHandler </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>icode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Action&lt; <a class="el" href="class_system_sharp_1_1_assembler_1_1_x_i_l3_instr.html">XIL3Instr</a> &gt;&#160;</td>
          <td class="paramname"><em>handler</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Registers a handler function for a specific XIL opcode </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">icode</td><td>XIL opcode</td></tr>
    <tr><td class="paramname">handler</td><td>handler function to call for each occurence of specified opcode</td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_x_i_l3_rewriter_8cs_source.html#l00165">165</a> of file <a class="el" href="_x_i_l3_rewriter_8cs_source.html">XIL3Rewriter.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a class="anchor" id="a44f400c3f5753ae30e1ccd8d9ab2cff3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_system_sharp_1_1_assembler_1_1_x_i_l3_instr.html">XIL3Instr</a> SystemSharp.Assembler.Rewriters.XIL3Rewriter.CurInstr</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns current input instruction </p>

<p>Definition at line <a class="el" href="_x_i_l3_rewriter_8cs_source.html#l00104">104</a> of file <a class="el" href="_x_i_l3_rewriter_8cs_source.html">XIL3Rewriter.cs</a>.</p>

</div>
</div>
<a class="anchor" id="ae889cf56a5b01089b34b7e59ab344216"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">IList&lt;<a class="el" href="class_system_sharp_1_1_assembler_1_1_x_i_l3_instr.html">XIL3Instr</a>&gt; SystemSharp.Assembler.Rewriters.XIL3Rewriter.InInstructions</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Input instruction list </p>

<p>Definition at line <a class="el" href="_x_i_l3_rewriter_8cs_source.html#l00040">40</a> of file <a class="el" href="_x_i_l3_rewriter_8cs_source.html">XIL3Rewriter.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a7e68df8caa7be1c2389320292bfeb977"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">IList&lt;<a class="el" href="class_system_sharp_1_1_meta_1_1_type_descriptor.html">TypeDescriptor</a>&gt; SystemSharp.Assembler.Rewriters.XIL3Rewriter.InSlotTypes</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns all slot datatypes associated with the input instructions </p>

<p>Definition at line <a class="el" href="_x_i_l3_rewriter_8cs_source.html#l00073">73</a> of file <a class="el" href="_x_i_l3_rewriter_8cs_source.html">XIL3Rewriter.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a4cca1ac17b00abc0dafd553c2058ce58"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int SystemSharp.Assembler.Rewriters.XIL3Rewriter.LastOutputInstructionIndex</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the index of the last emitted instruction </p>

<p>Definition at line <a class="el" href="_x_i_l3_rewriter_8cs_source.html#l00097">97</a> of file <a class="el" href="_x_i_l3_rewriter_8cs_source.html">XIL3Rewriter.cs</a>.</p>

</div>
</div>
<a class="anchor" id="af5d2917b795b2e832b648e9ff6d21cda"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int SystemSharp.Assembler.Rewriters.XIL3Rewriter.NextOutputInstructionIndex</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the index which will be assigned to the next emitted instruction </p>

<p>Definition at line <a class="el" href="_x_i_l3_rewriter_8cs_source.html#l00089">89</a> of file <a class="el" href="_x_i_l3_rewriter_8cs_source.html">XIL3Rewriter.cs</a>.</p>

</div>
</div>
<a class="anchor" id="af72755b88f5afff109d6ceabed144f37"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">List&lt;<a class="el" href="class_system_sharp_1_1_assembler_1_1_x_i_l3_instr.html">XIL3Instr</a>&gt; SystemSharp.Assembler.Rewriters.XIL3Rewriter.OutInstructions</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Output instruction list </p>

<p>Definition at line <a class="el" href="_x_i_l3_rewriter_8cs_source.html#l00045">45</a> of file <a class="el" href="_x_i_l3_rewriter_8cs_source.html">XIL3Rewriter.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a348000c837789188014ef477a7a4f5da"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">IList&lt;<a class="el" href="class_system_sharp_1_1_meta_1_1_type_descriptor.html">TypeDescriptor</a>&gt; SystemSharp.Assembler.Rewriters.XIL3Rewriter.OutSlotTypes</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns all slot datatypes associated with the output instructions </p>

<p>Definition at line <a class="el" href="_x_i_l3_rewriter_8cs_source.html#l00081">81</a> of file <a class="el" href="_x_i_l3_rewriter_8cs_source.html">XIL3Rewriter.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="_x_i_l3_rewriter_8cs_source.html">XIL3Rewriter.cs</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_system_sharp.html">SystemSharp</a></li><li class="navelem"><a class="el" href="namespace_system_sharp_1_1_assembler.html">Assembler</a></li><li class="navelem"><a class="el" href="namespace_system_sharp_1_1_assembler_1_1_rewriters.html">Rewriters</a></li><li class="navelem"><a class="el" href="class_system_sharp_1_1_assembler_1_1_rewriters_1_1_x_i_l3_rewriter.html">XIL3Rewriter</a></li>
    <li class="footer">Generated on Thu Dec 26 2013 14:21:58 for SystemSharp by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
